﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using WAF.EntityFramework;

namespace EntityTools.Model
{
    public partial class FieldInfo
    {
        public static FieldInfo[] GetFieldList(string tbID)
        {
            string sql = "SELECT FieldName, Label FROM FieldInfo WHERE TableID=" + tbID;

            return EntityAction.Select<FieldInfo>(sql);
        }

        public static FieldInfo[] GetFieldGrid(string tbID)
        {
            string sql = "SELECT * FROM FieldInfo WHERE TableID=" + tbID;

            return EntityAction.Select<FieldInfo>(sql);
        }
    }
}
